/**
* This starter bizproc is for a basic 
* @Depends /bizproc/base.bizproc.js
*/
scs.ui.bizprocs.sampleBizProc = function(id, dataParams) {
	return new scs.ui.BizProc(id, dataParams, {
		options: {
			refreshListOnEditToggle: true,
			refreshListOnUpdate: true
		},
		bizRules: {
			/**
			* 
			*/
			getBizObjListBizRule: "getBizObjs",
			getBizObjBizRule: "getBizObjDetail",
			updateBizRule: "updateBizObj",
			deleteBizRule: "deleteBizObj"
		},
		
		CurrentEditPrivilege: function() {
			return scs.security.Privileges.Delete;
		},
		_getBizObjDetailRuleParameters: function(id) {
			return [{
				id: id
			}];
		},
		_getBizObjListRuleParameters: function() {
			var options = $.extend({			
				stripLeading: !this.CanEdit()
			},this.artOptions);
			var pid = this._getParentBizProcValue("pid");
			if(pid)
				options.id = pid;
				
			return [options];
			
		},
		_internalSwitchEditMode: function() {
		},

		_afterSuccessfulUpdate: function(results) {
		}
	});
};


